import { createRouter,createWebHashHistory } from "vue-router";

const routes = [
    {
        path:"/",
        redirect:"/home"
    },
    {
        path:'/home',
        component:()=>import('../views/home.vue')
    },
    {
        path:'/folder/:row/:col',
        component:()=>import('../views/folder.vue')
    },
    {
        path:'/test',
        component:()=>import('../views/test.vue')
    },
    {
        path:'/file',
        component:()=>import('../views/file.vue')
    },
    {
        path:'/time',
        component:()=>import("../views/time.vue")
    },
    {
        path:'/weather',
        component:()=>import("../views/weather.vue")
    },
    {
        path:'/search',
        component:()=>import("../views/search.vue")
    },
    {
        path:'/startMenu',
        component:()=>import("../views/startMenu.vue")
    },
    {
        path:'/image',
        component:()=>import("../views/image.vue")
    }
]

const router = createRouter({
    routes,
    history:createWebHashHistory()
});

export default router;